package com.orange.psx;

public class Roulette {

	private int randomResult;
	private int staticNumber = 36;
	private static final int RANGE_STATIC = 100;
	private static final int RUN_TIME = 20000;
	private static final int RUN_TIME2 = RUN_TIME;

	public Roulette(int moteurGenerate) {
		this.staticNumber = moteurGenerate;
	}

	public int getRandomResult() {
		return randomResult;
	}

	public void setRandomResult(int randomResult) {
		this.randomResult = randomResult;
	}
	
	public void run(int time) {
		bootTime(time);
		this.randomResult =  (int) Math.random() % staticNumber * RANGE_STATIC;
	}
	
	protected void bootTime(int time) {
		BootTime boot = new BootTime(time);
		boot.bootTime();
	}

}
